import request from '@/utils/request'

export function randomList(query) {
  return request({
    url: `/admin/game/lottery-crit/group/prizes/random`,
    params: query
  })
}

export function initSetting() {
  return request({
    url: `/admin/game/lottery-crit/setting`
  })
}

export function giftList() {
  return request({
    url: `/admin/game/lottery-crit/prizes`
  })
}

export function critSelect() {
  return request({
    url: `/admin/game/lottery-crit/group/levels`
  })
}

export function prizesAdd(data) {
  return request({
    url: `/admin/game/lottery-crit/group/prizes`,
    method: 'post',
    data
  })
}
